//
//  MHPurseDetailViewController.m
//  MiaoCircle
//
//  Created by 许正荣 on 2018/7/24.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHOrderDetailViewController.h"
#import "MHPurseHeaderView.h"
#import "MHInComeDetailTableViewCell.h"
#import "MHInComeItemViewModel.h"
#import "MHOrderListCell.h"
@interface MHOrderDetailViewController ()

@end

@implementation MHOrderDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.tableView mh_registerNibCell:MHOrderListCell.class];
    self.tableView.estimatedRowHeight= 60;
    self.tableView.rowHeight=UITableViewAutomaticDimension;
}


- (UITableViewCell *)tableView:(UITableView *)tableView dequeueReusableCellWithIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath{
    
    return [tableView dequeueReusableCellWithIdentifier:@"MHOrderListCell"];
}

- (void)configureCell:(MHInComeDetailTableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath withObject:(id)object{
    MHInComeItemViewModel *itmeViewModel = object;
//    [cell.auditBtn bk_whenTapped:^{
//        [self.viewModel.auditCommand execute:itmeViewModel.model];
//    }];
    [cell bindViewModel:object];
}



//-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
//{
//    return 95;
//}

@end
